From e66412fc34f5f3a0721062c00545be78833bf3cd Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 5 Jun 2007 13:30:48 +0000 Subject: [PATCH] (bug 10055) Populate email address and real name properties of User objects passed to the 'AbortNewAccount' hook --- RELEASE-NOTES | 2 ++ includes/SpecialUserlogin.php | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 7736a6ca9e..446032f543 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -59,6 +59,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN see docs/hooks.txt for details * (bug 9769) Provide "watch this page" toggle on protection form * (bug 9886) Provide clear example "stub link" in Special:Preferences +* (bug 10055) Populate email address and real name properties of User objects + passed to the 'AbortNewAccount' hook == Bugfixes since 1.10 == diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 7fa01d2189..f5c6a51f96 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -265,6 +265,11 @@ class LoginForm { $this->mainLoginForm( wfMsg( 'passwordtooshort', $wgMinimalPasswordLength ) ); return false; } + + # Set some additional data so the AbortNewAccount hook can be + # used for more than just username validation + $u->setEmail( $this->mEmail ); + $u->setRealName( $this->mRealName ); $abortError = ''; if( !wfRunHooks( 'AbortNewAccount', array( $u, &$abortError ) ) ) { -- 2.20.1